<?php
/**
 * Created by PhpStorm.
 * User: fujianguo
 * Date: 2017/3/8
 * Time: 下午4:12
 */

namespace app\models;

use Yii;
use yii\base\Action;

class HelloAction extends Action
{

    public $name = 'world';
    public function run($name='lifei')
    {
        $user = new User();
        if ($user->load(Yii::$app->request->post())) {
            var_dump($user->attributes);die;
        }

        return $this->controller->render("hello",[
            'model'=>$user,
        ]);
    }


}